package com.ruoyi.system.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 聊天记录对象 q_chat
 * 
 * @author ruoyi
 * @date 2024-06-26
 */
public class QChat extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 关键字 */
    private Long chatId;

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    private int count ;


    /** 聊天会话ID */
    @Excel(name = "聊天会话ID")
    private String chatSessionid;

    /** 聊天内容 */
    @Excel(name = "聊天内容")
    private String chatContent;

    /** 聊天时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "聊天时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date chatTime;

    /** 1-客户系统， 2-访用用户 */
    @Excel(name = "1-客户系统， 2-访用用户")
    private String chatFayanren;

    public void setChatId(Long chatId) 
    {
        this.chatId = chatId;
    }

    public Long getChatId() 
    {
        return chatId;
    }
    public void setChatSessionid(String chatSessionid) 
    {
        this.chatSessionid = chatSessionid;
    }

    public String getChatSessionid()
    {
        return chatSessionid;
    }
    public void setChatContent(String chatContent)
    {
        this.chatContent = chatContent;
    }

    public String getChatContent()
    {
        return chatContent;
    }
    public void setChatTime(Date chatTime) 
    {
        this.chatTime = chatTime;
    }

    public Date getChatTime() 
    {
        return chatTime;
    }
    public void setChatFayanren(String chatFayanren) 
    {
        this.chatFayanren = chatFayanren;
    }

    public String getChatFayanren() 
    {
        return chatFayanren;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("chatId", getChatId())
            .append("chatSessionid", getChatSessionid())
            .append("chatContent", getChatContent())
            .append("chatTime", getChatTime())
            .append("chatFayanren", getChatFayanren())
            .toString();
    }
}
